package com.crm.service;

import com.crm.model.User;
import org.springframework.cache.annotation.Cacheable;

import javax.servlet.http.HttpServletRequest;

/**
 * @author zjd
 * @Title:
 * @Description: redis cache 测试
 * @date 2021/4/79:40
 */
public interface IRedisCacheService {


    User findUser(String userId);

    User findUserTwo(String userId);

    User findUserThree(String userId);

    User findUserFore(String userId);

    User update(User user);

    void clena();

    /**
     * 创建token
     * @return
     */
    public String createToken();

    /**
     * 检验token
     * @param request
     * @return
     */
    public boolean checkToken(HttpServletRequest request) throws Exception;



}
